﻿<%@ Page Language="C#" MasterPageFile="~/ProductManager/ProductManage.Master" AutoEventWireup="true" CodeFile="DeletedProduct.aspx.cs" Inherits="GoShopping.Web.ProductManager.DeletedProduct" Title="无标题页" %>
<%@ Register assembly="ExtensionGridView" namespace="ExtensionControls" tagprefix="cc1" %>
<%@ MasterType VirtualPath="ProductManage.Master" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table class="style1">
                <tr>
                    <td style="width: 200px">
                        <asp:Label ID="Label1" runat="server" Text="请选择商品的类型"></asp:Label>
                        <asp:DropDownList ID="ddlType" runat="server" Height="20px" 
                            onselectedindexchanged="ddlType_SelectedIndexChanged" Width="100px" 
                            AutoPostBack="True">
                        </asp:DropDownList>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                </table>
                <table>                
                <tr>
                    <td colspan="2">
<%--                        <cc1:ExtensionGridView ID="extGVDeletedPrdt1" runat="server" 
                            AutoGenerateColumns="False" PagerText="当前第{0}页,共{1}页{2}条记录" 
                            RecordCount="-1">
                            <Columns>
                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        <asp:CheckBox ID="cbAll" runat="server" 
                                            oncheckedchanged="cbAll_CheckedChanged" />
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="cbSingle" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="ID" Visible="False">
                                    <ItemTemplate>
                                        <asp:Label ID="lblID" runat="server" Text='<%# Eval("ID") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="Eval(&quot;Name&quot;)" HeaderText="商品名" />
                                <asp:BoundField DataField="Eval(&quot;ProductTypeID&quot;)" HeaderText="商品类型" />
                                <asp:BoundField DataField="Eval(&quot;BriefIntroduction&quot;)" 
                                    HeaderText="简介" />
                            </Columns>
                        </cc1:ExtensionGridView>--%>
                        <cc1:ExtensionGridView ID="extGVDeletedPrdt" runat="server" 
                            AutoGenerateColumns="False" PagerText="当前第{0}页,共{1}页{2}条记录" 
                            RecordCount="-1" AllowPaging="True" 
                            AllowSorting="True" AutoSort="True" EmptyDataText="没有商品记录!" 
                            Width="800px">
                            <Columns>
                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        <asp:CheckBox ID="cbAll" runat="server" 
                                            oncheckedchanged="cbAll_CheckedChanged" AutoPostBack="true" />
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="cbSingle" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        <asp:Label ID="Label6" runat="server" Text="编号"></asp:Label>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblID" runat="server" Text='<%# Eval("ID") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
<%--                                <asp:TemplateField HeaderText="操作">
                                    <HeaderTemplate>
                                        <asp:Label ID="Label1" runat="server" Text="操作"></asp:Label>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:Button ID="btnEdit" runat="server" Text="编辑" 
                                            CommandArgument='<%# Eval("id") %>' CommandName="EditItem" />
                                    </ItemTemplate>
                                </asp:TemplateField>--%>
                                <asp:TemplateField HeaderText="标签">
                                    <HeaderTemplate>
                                        <asp:Label ID="Label5" runat="server" Text="标签"></asp:Label>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblBiaoQian" runat="server" Text='<%# Eval("Tag") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="商品名称">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                                    </EditItemTemplate>
                                    <HeaderTemplate>
                                        <asp:Label ID="Label7" runat="server" Text="商品名称"></asp:Label>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblProName" runat="server" Text='<%# Eval("Name") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="品牌">
                                    <HeaderTemplate>
                                        <asp:Label ID="Label13" runat="server" Text="品牌"></asp:Label>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblBrand" runat="server" Text='<%# Eval("Brand") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="分类">
                                    <HeaderTemplate>
                                        <asp:Label ID="Label9" runat="server" Text="分类"></asp:Label>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblType" runat="server" Text='<%# GetPrdtTypeName(Eval("ProductTypeID")) %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="库存">
                                    <HeaderTemplate>
                                        <asp:Label ID="Label10" runat="server" Text="库存"></asp:Label>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblCount" runat="server" Text='<%# Eval("Count") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="销量">
                                    <HeaderTemplate>
                                        <asp:Label ID="Label11" runat="server" Text="上架?"></asp:Label>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblIsOnSale" runat="server" Text='<%# GetIsOnSale(Eval("IsShowOnSale")) %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="点击数">
                                    <HeaderTemplate>
                                        <asp:Label ID="Label12" runat="server" Text="点击数"></asp:Label>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblClick" runat="server" Text='<%# Eval("ClickCounts") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="优先级">
                                    <HeaderTemplate>
                                        <asp:Label ID="Label14" runat="server" Text="优先级"></asp:Label>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblRank" runat="server" Text='<%# Eval("Rank") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="供应商">
                                    <HeaderTemplate>
                                        <asp:Label ID="Label15" runat="server" Text="供应商"></asp:Label>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblSupplier" runat="server" Text='<%# GetSupplierName(Eval("SupplyerID")) %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="简介">
                                    <HeaderTemplate>
                                        <asp:Label ID="Label17" runat="server" Text="简介"></asp:Label>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label18" runat="server" Text='<%# Eval("BriefIntroduction") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <HeaderStyle HorizontalAlign="Center" />
                        </cc1:ExtensionGridView>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <%--<asp:Button ID="btnDel" runat="server" Text="删除" onclick="btnDel_Click" />--%>
                        <asp:Button ID="btnRestore" runat="server" onclick="btnRestore_Click" 
                            Text="恢复" />
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
